<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<html lang="zh">
<head>
<title>用户注册</title>
<link type="text/css" rel="stylesheet"
	href="${applicationScope.baseHref}/css/register.css" />
<script type="text/javascript"
	src="${applicationScope.baseHref}/js/register.js"></script>
</head>
<body>
	<div class="mainbar" style="margin-left: 160px;">
		<div class="article" style="padding: 15px 20px;">
			<h2>
				<span>用户注册</span>
			</h2>
		</div>
		<div class="clr"></div>
		<div class="article">
			<h2>
				<span>填写注册资料</span>
			</h2>
			<div class="clr"></div>
			<form id="form" action="register/register.jsps" method="post"
				onsubmit="return checkValue();">
				<ol>
					<li><span>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</span>
						<input id="emailAccount" name="emailAccount" class="text"
						type="text" maxlength="30" /></li>
					<li><span>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</span>
						<input id="password" name="password" class="text" type="password"
						maxlength="18" /></li>
					<li><span>确认密码</span> <input id="repeat" name="repeat"
						class="text" type="password" maxlength="18" /></li>
					<li><span>昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</span>
						<input id="nickname" name="nickname" class="text" type="text"
						maxlength="20" /></li>
					<li><span>验&nbsp;&nbsp;证&nbsp;&nbsp;码</span> <input
						id="authCode" name="authCode" class="text" type="text"
						maxlength="4" style="width: 160px;" /><img id="imgObj" alt="验证码"
						src="/image/authCode.jsps" /> <a id="changeCode"
						href="javascript:changeImg();">换一张</a></li>
					<li><input type="submit" id="submit" class="submit"
						value="提交注册" /></li>
				</ol>
			</form>
		</div>
	</div>
	<script type="text/javascript">
		function changeImg() {
			var imgSrc = $("#imgObj");
			var src = imgSrc.attr("src");
			imgSrc.attr("src", src);
			$("#authCode").val("");
		}
	</script>
</body>
</html>